package nc.ui.wa.commission.action;

import java.awt.event.ActionEvent;

import nc.bs.hrss.pub.BillCoderUtils;
import nc.ui.wa.commission.view.CommissionCardForm;

public class PFcommissionCancelAction extends nc.ui.hr.pf.action.PFCancelAction{
	

	private CommissionCardForm cardView;
	
	public CommissionCardForm getCardView() {
		return cardView;
	}

	public void setCardView(CommissionCardForm cardView) {
		this.cardView = cardView;
	}

	@Override
	public void doAction(ActionEvent evt) {
		super.doAction(evt);
		String bill_code = cardView.getCode();
		BillCoderUtils.rollbackPreBillCode(getModel().getContext().getPk_group(), getModel().getContext().getPk_org(), "HRWA002_0xx", bill_code);
	}
	

}
